package top.hjcwzx.wrench.limiter.strategy.algorithm;

public interface RateLimiterAlgorithmStrategy {

    /**
     * 限流算法
     * @param key 限流key
     * @param permits 限制频次
     * @return
     */
    boolean tryAcquire(String key, int permits);
}
